package com.zy.admin.annotate.impl;

import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
@SuppressWarnings("all")
public class RetryImpl {

    @Pointcut("execution(public * com.zy.admin.service.TestService.*(..))")
    public void aopPointCut() {}

    @Before("aopPointCut()")
    public void testAfter(JoinPoint joinPoint) {
        System.out.println(JSONObject.toJSONString(joinPoint));
    }

}
